package com.pxsw.mobile.hcd.widget;

import android.content.Context;
import android.widget.Toast;

public class MToast {
	static Toast toast;

	public MToast(Context context, CharSequence text, int duration) {
		if (toast != null) {
			toast.setText(text);
			toast.setDuration(duration);
		} else {
			toast = Toast.makeText(context, text, duration);
		}
	}

	public void show() {
		toast.show();
	}
}
